package com.baoyouqun.API.wx;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


@Data
@ApiModel("微信绑定现有账号参数")
public class BindWechatDTO {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    @ApiModelProperty(value = "用户手机号", required = true, example = "13800138000")
    private String cellphone;

    @NotBlank(message = "短信验证码不能为空")
    @Length(min = 6, max = 6, message = "验证码长度必须为6位")
    @ApiModelProperty(value = "短信验证码", required = true, example = "123456")
    private String smsCode;

    @NotBlank(message = "微信openid不能为空")
    @ApiModelProperty(value = "微信openid", required = true)
    private String wxOpenid;

    @NotBlank(message = "微信session_key不能为空")
    @ApiModelProperty(value = "微信session_key", required = true)
    private String wxSessionKey;
}
